package io.renren.modules.bs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.app.form.AppLoginForm;
import io.renren.modules.bs.entity.BsDepartmentAdministratorEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-08-15 23:03:15
 */
public interface BsDepartmentAdministratorService extends IService<BsDepartmentAdministratorEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 登录
     * @param form
     * @return
     */
    BsDepartmentAdministratorEntity login(AppLoginForm form);

    void saveModel(BsDepartmentAdministratorEntity bsDepartmentAdministrator);

    BsDepartmentAdministratorEntity getByAccount(String administratorAccount);

    void updateModel(BsDepartmentAdministratorEntity bsDepartmentAdministrator);

    List<BsDepartmentAdministratorEntity> listByDeptIds(List<Long> asList);

    void updatePwd(String newPwd, Long adminId);
}

